const express = require('express');
const router = express.Router();
const WeChat_handler = require("../../router_handler/wechat/index");
// 获取微信api需要的配置参数
router.get('/wx', WeChat_handler.initWeChatParams);
// 验证微信服务器
router.get('/', WeChat_handler.auth);
// 处理微信服务器发来的消息
router.post('/', WeChat_handler.HandlePostMsg);
// 获取微信公众号二维码
router.post('/getQrCode', WeChat_handler.getQrCode);
// 验证登录
router.post('/subscribe', WeChat_handler.subscribe);

router.post('/code', WeChat_handler.getCode);

router.post('/getUserInfo', WeChat_handler.getUserInfo);

router.post('/getRight', WeChat_handler.getRight);
module.exports = router;